import React from 'react'
import { Button, WingBlank } from 'antd-mobile'

class NotFound extends React.Component {
  constructor () {
    super()
    this.login = this.login.bind(this)
  }
  login () {
    this.props.history.push('/login')
  }
  render () {
    return (
      <WingBlank size='lg'>
        <h3 style={{textAlign: 'center', lineHeight: 5}}>你访问的页面不存在</h3>
        <Button type='primary' width={50} onClick={this.login}>登录</Button>
      </WingBlank>
    )
  }
}

export default NotFound